package cn.wolfcode.edu.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter@Setter
public class TuitionIncome extends BaseDomain {
   public static final byte NORMAL_STATUS = 0;//未审核
   public static final byte ALREADY_STATUS = 1;//已审核
    private FormalStudent student;//关联学员

    private ClassGrade clz; //关联教室

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date paymentTime; //付款时间

    private BigDecimal amountMoney = BigDecimal.ZERO;//此次收款金额

    private BigDecimal alreadyPaid = BigDecimal.ZERO;//已缴费金额

    private BigDecimal remainPaid = BigDecimal.ZERO;//未缴费金额

    private SystemDictionaryItem paymentMethod; //支付方式

    private String receipt;//单据号

    private String myRemark;//备注

    private byte status = NORMAL_STATUS;//状态

    private Employee cashier;//收款人

    private Employee auditer;//审核人
}